#ifndef STRING_H_
#define STRING_H_
#include <iostream>
using namespace std;
#include "../interfacesCol/ICollectible.h"

class String: public ICollectible{
	private:
		char*	elemento;
                int     largo;
	public:
		String();
		String(char*);
		String(const String &);
		char* getElemento()const;
		int getLargo()const;
		void setLargo(int);
                void setElemento(char* c);
		String& operator=(const String &);
                String& operator=(char*);
		String operator+(char*);//concatenaci�n
		String operator+(const String &);
		bool operator==(const String &);
		bool operator==(char*);
                bool operator<(const String &);
		bool operator<(char*);
                bool operator>(const String &);
                bool operator>(char*);
		char operator[](int);
		int lenght();
		String substring(int, int);
                ~String();

};
#endif
ostream & operator<<(ostream&, const String &);
istream & operator>>(istream&,String &);

